package edu.uow.devdocs
/**
 * The SystemDocumentation entity.
 *
 * @author    
 *
 *
 */
class SystemDocumentation {
    static mapping = {
         table 'SYSTEM_DOCUMENTATION'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'SYSTEM_DOCUMENTATION_ID'
		 id generator: 'sequence', params:[sequence:'SYSTEM_DOCUMENTATION_DOCUMENTATION_SEQ']
         systemIdSystem column:'SYSTEM_ID'
    }
    String documentation
    String description
    Date lastUpdated
    // Relation
    System systemIdSystem

    static constraints = {
        documentation(nullable: true)
        description(size: 0..255)
        lastUpdated(nullable: true)
        systemIdSystem()
    }
    String toString() {
        return "${description}" 
    }
}
